﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace System
{

	/// <summary>
	/// Métodos helpers para trabalhar com strings
	/// </summary>
	public static class StringExtensions
	{

		/// <summary>
		/// Retorna a string invertida
		/// </summary>
		/// <param name="str"></param>
		/// <returns></returns>
		public static string Reverse( this string str )
		{
			if ( str == null )
				return null;
			else
				return new String( Enumerable.Reverse( str ).ToArray() );
		}
	}
}
